<?
include_once "accesscontrol.php";

$q1 = "select * from job_post where job_id = \"$job_ed\" ";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);

?>
<br><br>
	<table align=center class=BlackText>
	<tr><td colspan=2 align=center class=HeaderClass> To edit a job, use the form below:</td></tr><br><br>
	<form action=EditJob2.php method=post>
	<tr><td align=right>Position:</td>
	
	<td>
		<input type=text name=position value="<?=$a1[position]?>">
	</td>
	</tr>

	<tr>
		<td align=right>Job location:</td>
		<td><?=select_country($a1[CompanyCountry], "job_location");?></td>
	</tr>
	
	<tr>
		<td align=right>Job State:</td>
		<td><input type=text name=state value="<?=$a1[CompanyState]?>"></td>
	</tr>

	<tr>
	<td valign=top align=right>
	Job Category:
	</td>

	<td valign=top>
		<?=job_categories($a1[JobCategory], "JobCategory2[]", "multiple size=5");?>
	</td>
	</tr>

	<tr><td align=right>Short Description:</td>
		<td><textarea rows=6 cols=35 name=s_desc><?=$a1[short_desc]?></textarea></td>
	</tr>
	
	<tr><td align=right>Responsibilities:</td>
		<td><textarea rows=6 cols=35 name=respon><?=$a1[responsibilities]?></textarea></td>
	</tr>
	
	<tr><td align=right>Requirements:</td>
		<td><textarea rows=6 cols=35 name=require><?=$a1[requirements]?></textarea></td>
	</tr>

	<tr>
	<td align=right>Target: </td>

	<td>
	<select name="j_target2" style=width:303>
	<option value=""> </option>
	<OPTION VALUE="1" <? if($a1[j_target] == '1') { echo "selected"; } ?>>Student (High School)</OPTION>
	<OPTION VALUE="2" <? if($a1[j_target] == '2') { echo "selected"; } ?>>Student (undergraduate/graduate)</OPTION>
	<OPTION VALUE="3" <? if($a1[j_target] == '3') { echo "selected"; } ?>>Entry Level (less than 2 years of experience)</OPTION>
	<OPTION VALUE="4" <? if($a1[j_target] == '4') { echo "selected"; } ?>>Mid Career (2+ years of experience)</OPTION>
	<OPTION VALUE="5" <? if($a1[j_target] == '5') { echo "selected"; } ?>>Management (Manager/Director of Staff)</OPTION>
	<OPTION VALUE="6" <? if($a1[j_target] == '6') { echo "selected"; } ?>>Executive (SVP, EVP, VP)</OPTION>
	<OPTION VALUE="7" <? if($a1[j_target] == '7') { echo "selected"; } ?>>Senior Executive (President, CEO)</OPTION>
	</select>
	</td>
	</tr>
	
	<tr><td align=right>Salary: </td>
	<td>
	<input size=10 type=text name=salary2 value=<?=$a1[salary]?>> 
	<select name=s_period2>
	<option value=Yearly> Yearly </option>
	<option value=Monthly>Monthly </option>
	</select>
	</td></tr>

	<tr>
		<td></td>
		<td>
			<input type=hidden name=job_id22 value=<?=$job_ed?>>
			<input type=submit name=submit value="Save changes">
		</td>
	</tr>
</table>
</form>



<? include_once('../footer.php'); ?>